﻿@model IEnumerable<JinianNet.JNCms.Models.Category>
<!DOCTYPE html>
<html>
<head>
    <title>栏目管理 - @JinianNet.JNCms.Config.Site.Name</title>
    @JinianNet.Web.ResourceManager.Script.Render("Manage/Base")
    @JinianNet.Web.ResourceManager.Style.Render("Manage/Base")
</head>
<body>
    <table width="98%" align="center" border="0" cellspacing="0" cellpadding="0" class="grid">
        <tr>
            <th width="50">选择</th>
            <th>栏目</th>
            <th width="150">别名</th>
            <th width="50">有效</th>
            <th width="50">外链</th>
            <th width="150">时间</th>
            <th width="200">操作</th>
        </tr>
        @foreach (var item in Model)
        {
            <tr>
                <td align="center">
                    <input type="checkbox" /></td>
                <td>&nbsp;&nbsp;
                    @if (item.IsUrl)
                    {
                        <a target="_blank" href="@item.Url">@item.Title</a>
                    }
                    else
                    {
                        <a href="/Manage/Category/List/@item.ID">@item.Title</a> <a href="/Manage/Article/List/@item.KeyName">[文章列表]</a>
                    }
                </td>
                <td align="center">@item.KeyName</td>
                <td align="center">@(new MvcHtmlString(item.IsVerify ? "<span class=\"green\">&radic;</span>" : "<span class=\"red\">&times;</span>"))</td>
                <td align="center">@(new MvcHtmlString(item.IsUrl ? "<span class=\"green\">&radic;</span>" : "<span class=\"red\">&times;</span>"))</td>
                <td align="center">@item.CreateTime.ToString("yy年MM月dd")</td>
                <td align="center">
                    <a href="/Manage/Article/Insert/@item.KeyName">添加文章</a>
                    <a href="/Manage/Category/Insert/@item.ID">添加子项</a> 
                    <a href="/Manage/Category/Edit/@item.KeyName">编辑</a> 
                    <a href="/Manage/Category/Delete/@item.ID" onclick="return confirm('您确定要进行删除操作吗？')">删除</a></td>
            </tr>
        }
    </table>
</body>
</html>
